It's me, AMT. I apologize for the confusion caused by my scripts. I got mixed up, and as a result, I separated the features of my scripts into different parts.
The script versions are now designed to focus on specific features.
I made these changes because I realized that versions 1 and 2 had many similarities. I decided to update them, and it occurred to me that each version of my script should be centered around a particular feature.
In version 1 it's focuses on spawning peds for protection and spawning enemies that need to be defeated.
Once again, I apologize for the confusion. I also got confused with my own scripts, but I promise I will fix it. Thank you for your understanding.